Skip to content

Conversation

andygolay
Copy link
Contributor

@andygolay andygolay commented May 20, 2025

Summary

  • Add the format-module-bytes utility to provide the serialized args for calling code::publish_package_txn on Movement explorer.
  • Useful where publishing via explorer is needed for some reason (eg an org using a multisig provider that doesn't support CLI operations).

Changelog

  • Adds the package format-module-bytes and tests.

Usage

See the README for instructions with the included example hello.move package.

The main steps are:

  1. From util/format-module-bytes, movement init or copy in a .movement/config.yaml into the util/format-module-bytes dir to set up the account you intend to use for publishing. The default profile is the one used in this util.
  2. Add your modules under sources.
  3. cargo run -p format-module-bytes
  4. Publish via explorer with the same address you used in your .movement/config.yaml. (Ensure the account is funded.)

Testing

Unit tests: cargo test -p format-module-bytes

E2E testing is best done manually; you should be able to publish the package with the serialized inputs and see a success result as follows:
image

@andygolay andygolay changed the title feat: publish via explorer feat: format-module-bytes utility May 22, 2025
@andygolay andygolay requested a review from l-monninger May 22, 2025 11:47
Copy link
Contributor

@l-monninger l-monninger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be working correctly for me. As this isn't on the critical path, I think it's well enough tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants